Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: TimeInput not triggering onChange on incomplete values #1711

Merged
merged 3 commits into from
Jan 11, 2024

Conversation

vbabich
Copy link
Collaborator

@vbabich vbabich commented Jan 5, 2024

Update TimeInput to trigger onChange on incomplete input values, missing chars filled in with zeros. Update internal/displayed value on blur to match the last onChange.

fixes #1710

@vbabich vbabich self-assigned this Jan 5, 2024
@vbabich vbabich enabled auto-merge (squash) January 5, 2024 18:15
@vbabich vbabich requested a review from mofojed January 5, 2024 18:15
Copy link

codecov bot commented Jan 5, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (73e1837) 46.44% compared to head (8295b5a) 46.46%.

Files Patch % Lines
packages/components/src/TimeInput.tsx 94.73% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1711      +/-   ##
==========================================
+ Coverage   46.44%   46.46%   +0.01%     
==========================================
  Files         611      611              
  Lines       37204    37217      +13     
  Branches     9363     9365       +2     
==========================================
+ Hits        17279    17292      +13     
  Misses      19871    19871              
  Partials       54       54              
Flag Coverage Δ
unit 46.46% <94.73%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vbabich vbabich disabled auto-merge January 5, 2024 18:51
@vbabich vbabich merged commit 6894d96 into deephaven:main Jan 11, 2024
5 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 11, 2024
@vbabich vbabich deleted the fix-timeinput-onchange branch January 11, 2024 18:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TimeInput doesn't trigger onChange for incomplete input values
2 participants